import request  from "@/utils/request";

const gatewayUrl="http://localhost:19527"
const aiApplication="/aiApplication/api"
const security="/aiSecurity/security"

const api = {
    // 登录
    login: (data) => {
        return request.post(gatewayUrl+security+"/login", data);
    },
    //注册
    register: (data) => {
        return request.post(gatewayUrl+security+"/register", data);
    },
    logout(data) {
        return request.post(gatewayUrl+security+"/logout", data);
    },
    //test
    test: () => {
        // return request.get(apiUrl+"/history");
        return request.get(gatewayUrl+aiApplication+"/history");
    }
}
export default api
export { gatewayUrl}